<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'financialDatas.label', default: 'FinancialDatas')}" />
        <title>财务数据</title>
    </head>
    <body>
        <div class="small-header">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                            <li>股票模型</li>
                            <li class="active">
                                <span>财务数据</span>
                            </li>
                        </ol>
                    </div>

                    <h2 class="font-light m-b-xs">
                        财务数据
                    </h2>

                </div>
            </div>
        </div>

        <div class="content animate-panel">
            %{--<f:table collection="${FinancialDatasList}"/>--}%
            <div class="row">
                <div class="hpanel hgreen">
                    <div class="panel-heading">
                        <div class="panel-tools">
                            <g:link action="create" class="btn btn-info btn-xs"><i class="fa fa-plus"></i>新建</g:link>
                            <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                        </div>
                        <div class="panel-tools">
                            <g:link action="financialDataQueryInitial" class="btn btn-info btn-xs"><i class="fa fa-plus"></i>财务数据</g:link>
                            <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                        </div>                       
                        财务数据
                    </div>
                    

                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <g:sortableColumn property="id" title="ID"/>
                                    <g:sortableColumn property="stockName" title="股票名称"/>
                                    <g:sortableColumn property="period" title="财报日期"/>
                                    <g:sortableColumn property="category" title="类别"/>
                                    <g:sortableColumn property="data" title="数值"/>
                                    
                                    

                                </tr>
                                </thead>
                                <tbody>
                                <g:each in="${financialDatasList}">
                                    <tr>
                                        <td><g:link action="show" id="${it.id}"
                                                    class="firstTd">${it?.id}</g:link></td>
                                        <td>${it?.stock.name}</td>
                                        <td>${it?.reportPeriod.reportDate}</td>
                                        <td>${it?.reportCategory.name}</td>
                                        <td>${it?.data}</td>
                                        
                                    </tr>
                                </g:each>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div class="panel-footer">
                        <div class="pagination">
                            <g:paginate total="${financialDatasCount ?: 0}" params="${params}"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>